package com.lsmw.applet.client;


import com.lsmw.applet.client.impl.MyTransferClientImpl;
import com.lsmw.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-management", fallback = MyTransferClientImpl.class)
@Component
public interface MyTransferClient {

    @GetMapping(value = "/management/hotel/")
    public R getHotelList();

    @GetMapping(value = "/management/room/{id}")
    public R getRoomListByHotelId(@PathVariable("id") String id);
}
